import { req } from "./init";

interface GoodsListSearchParam {
  query?: string;
  cid?: string;
  pagenum?: number;
  pagesize?: number;
}
export const getGoodsListSearch = async (param?: GoodsListSearchParam) => {
  const { message } = (await req.get("goods/search", param)) as any;
  return message;
};
export const getDetall = async (goods_id: number) => {
  const { message } = (await req.get("goods/detail", { goods_id })) as any;
  return message;
};
